/**
 * jims
 */
package com.jims.master.modules.nurse.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.nurse.entity.NurseTempItemDict;
import com.jims.master.modules.nurse.dao.NurseTempItemDictDao;

/**
 * 护理项目字典Service
 * @author CTQ
 * @version 2017-06-01
 */
@Service
@Transactional(readOnly = true)
public class NurseTempItemDictService extends CrudService<NurseTempItemDictDao, NurseTempItemDict> {

	public NurseTempItemDict get(String id) {
		return super.get(id);
	}
	/**
	 * 护理事件调用护理项目字典
	 * @param q
	 * @param limit
	 * @return
	 * @author CTQ
	 */
	public List<NurseTempItemDict> findListByParam(String q,  String limit,String nurseGroups,String orgId, String wardCode, String classCode) {
		return dao.findListByParam(q,limit,nurseGroups,orgId, wardCode, classCode);
	}
	
	public Page<NurseTempItemDict> findPage(Page<NurseTempItemDict> page, NurseTempItemDict nurseTempItemDict) {
		return super.findPage(page, nurseTempItemDict);
	}
	
	@Transactional(readOnly = false)
	public int save(NurseTempItemDict nurseTempItemDict) {
		return super.save(nurseTempItemDict);
	}
	
	@Transactional(readOnly = false)
	public int delete(NurseTempItemDict nurseTempItemDict) {
		return super.delete(nurseTempItemDict);
	}
	
}